home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 28
/
Volume 28 - JOGO DISK .iso
/
Games
/
electroman.swf
/
scripts
/
frame_51
/
DoAction.as
Wrap
Text File
|
2006-11-29
|
1KB
|
71 lines
if(check != 25)
{
gotoAndPlay(50);
}
if(467 < m)
{
m = "467";
}
ikey = key - int(key / 467) * 467;
keymod = ikey - int(ikey / 5) * 5;
if(Number(keymod) == 0)
{
e = 11;
n = 1333;
}
else if(Number(keymod) == 1)
{
e = 3;
n = 1081;
}
else if(Number(keymod) == 2)
{
e = 5;
n = 1007;
}
else if(Number(keymod) == 3)
{
e = 3;
n = 1363;
}
else if(Number(keymod) == 4)
{
e = 3;
n = 1537;
}
emodresult = e - int(e / 2) * 2;
if(Number(emodresult) == 0)
{
c1 = 1;
}
else
{
c1 = m;
}
d1 = m * m - int(m * m / n) * n;
i = 1;
while(Number(i) < Number(e / 2))
{
c1 = d1 * c1 - int(d1 * c1 / n) * n;
i = Number(i) + 1;
}
if(Number(emodresult) == 0)
{
c2 = 1;
}
else
{
c2 = ikey;
}
d2 = ikey * ikey - int(ikey * ikey / n) * n;
i = 1;
while(Number(i) < Number(e / 2))
{
c2 = d2 * c2 - int(d2 * c2 / n) * n;
i = Number(i) + 1;
}
c1 += ikey;
urlpost = "http://www.kmb.com.hk/putkeye.php?c1=" add c1 add "&c2=" add c2;
loadVariablesNum(urlpost,0,"POST");
check = 0;